﻿using System;
using System.Collections.Specialized;

class CShape_2_4
{
    static void DecomPose(int n)
    {
        int k = 2;
        while(n>k)
        {
            if(n%k==0)
            {
                Console.Write(k + "*");
                n /= k;
            }
            else
            {
                k++;
            }
        }
        Console.Write(k);
    }
    static void Main(String[] args)
    {
        int n = int.Parse(Console.ReadLine());
        Console.Write(n + "=");
        DecomPose(n);
    }
}